package com.transaction.demo.trade.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.transaction.demo.common.util.ResultPage;
import com.transaction.demo.trade.vo.req.TradePaymentRecordReqVo;
import com.transaction.demo.trade.vo.req.TradePaymentRecordListReqVo;
import com.transaction.demo.trade.vo.req.TradePaymentRecordUpdateReqVo;
import com.transaction.demo.trade.vo.resp.TradePaymentRecordRespVo;
import com.transaction.demo.trade.biz.TradePaymentRecordBiz;
import com.transaction.demo.trade.service.TradePaymentRecordService;

/**
 * 描述：支付记录表
 * 作者：马庆智
 * 日期：2023/04/27 17:22:10
 */
@Service
public class TradePaymentRecordServiceImpl implements TradePaymentRecordService {

   @Autowired
   private TradePaymentRecordBiz tradePaymentRecordBiz;

   /**
    * 查询支付记录表
    *
    * @param tradePaymentRecord 请求参数
    * @return TradePaymentRecordResp
    * @author 马庆智
    * @date: 2023/04/27 17:22:10
    */
   @Override
   public TradePaymentRecordRespVo queryTradePaymentRecord(TradePaymentRecordReqVo tradePaymentRecord){

       return tradePaymentRecordBiz.queryTradePaymentRecord(tradePaymentRecord);
   }

   /**
    * 查询支付记录表列表
    *
    * @param tradePaymentRecord 请求参数
    * @return TradePaymentRecordResp
    * @author 马庆智
    * @date: 2023/04/27 17:22:10
    */
   @Override
   public ResultPage<TradePaymentRecordRespVo> queryTradePaymentRecordList(TradePaymentRecordListReqVo tradePaymentRecord){

        return tradePaymentRecordBiz.queryTradePaymentRecordList(tradePaymentRecord);
   }


   /**
    * 删除支付记录表
    *
    * @param ids 请求参数
    * @return int
    * @author 马庆智
    * @date: 2023/04/27 17:22:10
    */
   @Override
   public int deleteTradePaymentRecord(String ids){
		return tradePaymentRecordBiz.deleteTradePaymentRecord(ids);
   }

   /**
    * 更新支付记录表
    *
    * @param tradePaymentRecord 请求参数
    * @return int
    * @author 马庆智
    * @date: 2023/04/27 17:22:10
    */
   @Override
   public int updateTradePaymentRecord(TradePaymentRecordUpdateReqVo tradePaymentRecord){

        return tradePaymentRecordBiz.updateTradePaymentRecord(tradePaymentRecord);
   }

}